Shortest Weighted Paths Parallel and Sequential Data
نویسندگان
چکیده
It is often necessary to associate weights or other values with the edges of a graph. Such a “weighted” or “edge-labeled” graph can be defined as a triple G = (E, V, w) where w : E → eVal is a function mapping edges or directed edges to their values, and eVal is the set (type) of possible values. For a weighted graph eVal would typically be the real numbers, but for edge-labeled graphs they could be any type. There are a few ways to represent a weighted or edge-labeled graph. The first representation translates directly from representing the function w. In particular we can use a table that maps each edge (a pair of vertex identifiers) to its value. This would have type eVal edgeTable That is, the keys of the table are edges and the values are of type eVal. For example, for a weighted graph we might have: W = {(0,1) 7→ 0.7, (1,2) 7→ −2.0, (0,2) 7→ 1.5} This representation would allow us to look up the weight of an edge e using: w(e) = find W e. Another way to associate values with edges is to use a structure similar to the adjacency set representation for unweighted graphs and associate a value with each out edge of a vertex. In particular, instead of associating with each vertex a set of out-neighbors, we can associate each vertex with a table that maps each out-neighbor to its value. It would have type: (eVal vertexTable) vertexTable . The graph above would then be represented as: G = {0 7→ {1 7→ 0.7, 2 7→ 1.5} , 1 7→ {2 7→ −2.0} , 2 7→ {}} . We will mostly be using this second representation. †Lecture notes by Umut A. Acar, Guy E Blelloch, Margaret Reid-Miller, and Kanat Tangwongsan.
منابع مشابه
Shortest Weighted Paths I Parallel and Sequential Data
When graphs are implemented using tables and sets, the cost of finding and updating a vertex in the table is (logn) work and span. We can improve the asymptotic performance of certain algorithms if these operations are constant work. An array is an obvious data structure that has constant lookup, but in a functional setting the cost of changing a value in the array requires copying the whole ar...
متن کاملParallel implementation of geometric shortest path algorithms
In application areas such as GIS, the Euclidean metric is often less meaningfully applied to determine a shortest path than metrics which capture, through weights, the varying nature of the terrain (e.g., water, rock, forest). Considering weighted metrics however increases the run-time of algorithms considerably suggesting the use of a parallel approach. In this paper, we provide a parallel imp...
متن کاملOptimal parallel algorithm for shortest paths problem on interval graphs.
This paper presents an efficient parallel algorithm for the shortest-path problem in interval graph for computing shortest-paths in a weighted interval graph that runs in O(n) time with n intervals in a graph. A linear processor CRCW algorithm for determining the shortest-paths in an interval graphs is given.
متن کاملParallel Algorithms for the K Shortest Paths and Related Problems Parallel Algorithms for the K Shortest Paths and Related Problems
A parallel algorithm is developed to nd the k shortest paths between pairs of vertices in an edge-weighted directed graph. The concurrent-read exclusive-write PRAM is used as the model of computation. The algorithm computes an implicit representation of the k shortest paths to a given destination vertex from each vertex of a graph with n vertices and m edges, using O(m + nk log 2 k) work and O(...
متن کاملOn-line and Dynamic Shortest Paths through Graph Decompositions
We describe algorithms for finding shortest paths and distances in a planar digraph which exploit the particular topology of the input graph. We give both sequential and parallel algorithms that work on a dynamic environment, where the cost of any edge can be changed or the edge can be deleted. For outerplanar digraphs, for instance, the data structures can be updated after any such change in o...
متن کاملEfficient Parallel Algorithms for Planar st-Graphs1
Planar st-graphs find applications in a number of areas. In this paper we present efficient parallel algorithms for solving several fundamental problems on planar st-graphs. The problems we consider include all-pairs shortest paths in weighted planar st-graphs, single-source shortest paths in weighted planar layered digraphs (which can be reduced to single-source shortest paths in certain speci...
متن کامل